export default {
	namespaced: true,
	state: {
		token: uni.getStorageSync('token') || '',
		userInfo: uni.getStorageSync('userInfo') || {},
	},
	mutations: {
		setUserToken(state,token) {
			state.token = token
			uni.setStorageSync('token',token)
		},
		setUserInfo(state,info) {
			state.userInfo = info
			uni.setStorageSync('userInfo',state.userInfo)
		}
	}
}